﻿using Models;
using Newtonsoft.Json;

namespace SCService.Busnisses
{
    public class Login : IBusiness
    {
        public string Execute(object data)
        {
            User user = JsonConvert.DeserializeObject<User>(data.ToString());
            return (new Response<User>()
            {
                Success = true,
                Message = "",
                Data = new User() { UserName = user.UserName },
            }).ToJsonString();
        }
    }
}